package com.easonji.attendance.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;


import java.io.Serializable;

/**
 * <p>
 * 请假状态
 * </p>
 *
 * @author easonji
 * @since 2018-10-04
 */

@TableName("att_leave_state")

public class LeaveState extends Model<LeaveState> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "les_id", type = IdType.AUTO)
    private Integer lesId;

    @TableField("les_leave")
    private Integer lesLeave;

    @TableField("les_state")
    private Integer lesState;

    @TableField("les_datetime")
    private Date lesDatetime;

    @TableField("les_auditor")
    private Integer lesAuditor;

    @TableField("les_opinion")
    private String lesOpinion;

    @TableField("les_post")
    private Integer lesPost;

    public Integer getLesId() {
        return lesId;
    }

    public void setLesId(Integer lesId) {
        this.lesId = lesId;
    }
    public Integer getLesLeave() {
        return lesLeave;
    }

    public void setLesLeave(Integer lesLeave) {
        this.lesLeave = lesLeave;
    }
    public Integer getLesState() {
        return lesState;
    }

    public void setLesState(Integer lesState) {
        this.lesState = lesState;
    }
    public Date getLesDatetime() {
        return lesDatetime;
    }

    public void setLesDatetime(Date lesDatetime) {
        this.lesDatetime = lesDatetime;
    }
    public Integer getLesAuditor() {
        return lesAuditor;
    }

    public void setLesAuditor(Integer lesAuditor) {
        this.lesAuditor = lesAuditor;
    }
    public String getLesOpinion() {
        return lesOpinion;
    }

    public void setLesOpinion(String lesOpinion) {
        this.lesOpinion = lesOpinion;
    }
    public Integer getLesPost() {
        return lesPost;
    }

    public void setLesPost(Integer lesPost) {
        this.lesPost = lesPost;
    }

    @Override
    protected Serializable pkVal() {
        return this.lesId;
    }

    @Override
    public String toString() {
        return "LeaveState{" +
        "lesId=" + lesId +
        ", lesLeave=" + lesLeave +
        ", lesState=" + lesState +
        ", lesDatetime=" + lesDatetime +
        ", lesAuditor=" + lesAuditor +
        ", lesOpinion=" + lesOpinion +
        ", lesPost=" + lesPost +
        "}";
    }
}
